﻿using System.ComponentModel.DataAnnotations;
using MediatR;
using Service.Auth.Model.Model.RequestDto.User;

namespace Service.Auth.Api.Application.Command;

public record CreateUserCommand
    (CreateUserDto User) : IRequest<bool>;

public record CreateUserByPhoneCommand
    (CreateUserByPhoneDto User) : IRequest<long>;


public record UpdateUserCommand
    (UpdateUserDto User) : IRequest<bool>;


/// <summary>
/// 修改当前登陆的用户信息
/// </summary>
public record UpdateUserByLoginCommand
    (UpdateUserByLoginDto User ) : IRequest<bool>;



public record SetUserStatusCommand
(SetUserStatusDto SetUserStatusDto) : IRequest<bool>;


public record ChangePasswordCommand
    (ChangePasswordDto ChangePassword) : IRequest<bool>;


/// <summary>
/// 短信修改密码
/// </summary>
public record SmsChangePasswordCommand
    (SmsChangePasswordDto SmsChangePassword) : IRequest<bool>;

public record DeleteUserCommand
    (DeleteUserDto User) : IRequest<bool>;

/// <summary>
/// 注销登陆
/// </summary>

public record LogoutLoginCommand : IRequest<bool>;

